<h1>Listing charts</h1>

<table>
  <tr>
    <th>Name</th>
  </tr>

<% @charts.each do |chart| %>
  <tr>
    <td><%=h chart.name %></td>
    <td><%= link_to 'Show', chart %></td>
    <td><%= link_to 'Edit', edit_chart_path(chart) %></td>
    <td><%= link_to 'Destroy', chart, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New chart', new_chart_path %>